home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Optimisation & Diagnostics / UpdateStar 2.5 / UpdateStar_ENU.msi / StartXsl < prev    next >
Extensible Markup Language  |  2008-04-16  |  25KB  |  892 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4. <xsl:template match="start/stylepath"></xsl:template>
  5. <xsl:template match="start/language"></xsl:template>
  6. <xsl:template match="start/largefont"></xsl:template>
  7.  
  8.  
  9. <xsl:variable name="language"><xsl:value-of select="start/language"/></xsl:variable>
  10. <xsl:variable name="largefont"><xsl:value-of select="start/largefont"/></xsl:variable>
  11. <xsl:variable name="stylepathorig"><xsl:value-of select="start/stylepath"/></xsl:variable>
  12. <xsl:variable name="stylepath"><xsl:copy-of select="$stylepathorig"/>/Img/</xsl:variable>
  13. <xsl:variable name="apps"><xsl:value-of select="start/data/countings/apps"/></xsl:variable>
  14. <xsl:variable name="updates"><xsl:value-of select="start/data/countings/updates"/></xsl:variable>
  15. <xsl:variable name="ratio"><xsl:value-of select="start/data/countings/apps_ratio"/></xsl:variable>
  16. <xsl:variable name="lastupdate"><xsl:value-of select="start/data/lastupdate"/></xsl:variable>
  17. <xsl:variable name="build"><xsl:value-of select="start/data/build"/></xsl:variable>
  18. <xsl:variable name="myupdatelist"><xsl:value-of select="start/data/updatelist"/></xsl:variable>
  19.  
  20.  
  21.  
  22.  
  23. <xsl:template match="start/data">
  24.  
  25.  
  26. <html>
  27.     <head>
  28. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="YES"/>
  29.  
  30. <xsl:element name="link">
  31.     <xsl:attribute name="href"><xsl:copy-of select="$stylepathorig"/>/style.css</xsl:attribute>
  32.     <xsl:attribute name="rel">stylesheet</xsl:attribute>
  33.     <xsl:attribute name="type">text/css</xsl:attribute>
  34. </xsl:element>
  35.  
  36. <xsl:if test="$largefont='yes'">
  37.     <style type="text/css">
  38.         td     {
  39.             font-size: 14px;
  40.         }
  41.         
  42.         td.desc{
  43.             font-size:13px;
  44.         }
  45.         td.normal{
  46.             font-size:13px;
  47.         }
  48.         td.normalbig{
  49.             font-size:13px;
  50.         }
  51.         a.sublink{
  52.             font-size:11px;
  53.             font-weight:bold;
  54.         }
  55.     </style>
  56. </xsl:if>
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. <script type="text/javascript">
  68.  
  69. <xsl:text disable-output-escaping="yes"><![CDATA[
  70. <!--
  71.  
  72. function UpdatestarWindowWinWeight () {
  73.   if (window.innerWidth) {
  74.     return window.innerWidth;
  75.   } else if (document.body && document.body.offsetWidth) {
  76.     return document.body.offsetWidth;
  77.   } else {
  78.     return 0;
  79.   }
  80. }
  81.  
  82. function UpdatestarWindowWinHeight () {
  83.   if (window.innerHeight) {
  84.     return window.innerHeight;
  85.   } else if (document.body && document.body.offsetHeight) {
  86.     return document.body.offsetHeight;
  87.   } else {
  88.     return 0;
  89.   }
  90. }
  91.  
  92.  
  93. function neuAufbau () {
  94.     WinWeight = UpdatestarWindowWinWeight();
  95.     WinHeight = UpdatestarWindowWinHeight();
  96.     
  97.     //count rows to display at once
  98.     showelements = Math.round(((WinHeight) - 300) / 23);
  99.     if(showelements < minimalshow) showelements = minimalshow;
  100.  
  101.     pages = Math.ceil(updatescount / showelements) - 1;
  102.  
  103.     displayTable();
  104. }
  105.  
  106.  
  107. function hideElement (elementId) {
  108.     var element;
  109.     if (document.all)
  110.     element = document.all[elementId];
  111.     else if (document.getElementById)
  112.     element = document.getElementById(elementId);
  113.     if (element && element.style)
  114.     element.style.display = 'none';
  115. }
  116.  
  117.  
  118. function showElement (elementId) {
  119.     var element;
  120.     if (document.all)
  121.     element = document.all[elementId];
  122.     else if (document.getElementById)
  123.     element = document.getElementById(elementId);
  124.     if (element && element.style)
  125.     element.style.display = '';
  126. }
  127.  
  128. function nextPage() {
  129.     if(page < pages){
  130.         page++;
  131.         displayTable();
  132.     }
  133. }
  134.  
  135. function prevPage() {
  136.     if(page > 0){
  137.         page--;
  138.         displayTable();
  139.     }
  140. }
  141.  
  142. function displayTable() {
  143.     rowstoshow = ((showelements * page)+ showelements );
  144.  
  145.     for (var i = 0; i <= updatescount; i++){    //reset all
  146.         if(document.getElementById("update_" + i))document.getElementById("update_" + i).style.display="none";
  147.     }
  148.     
  149.     for (var i = (showelements * page)+1; i <= rowstoshow; i++){    //select current
  150.         if(document.getElementById("update_" + i))document.getElementById("update_" + i).style.display="";
  151.     }
  152.     showinfo();
  153. }
  154.  
  155.  
  156. function showinfo(){
  157.     if(page == 0){
  158.         if(document.getElementById("prevpage"))document.getElementById("prevpage").style.visibility="hidden";
  159.     } else{
  160.         if(document.getElementById("prevpage"))document.getElementById("prevpage").style.visibility="visible";
  161.     }
  162.     
  163.     if(page == pages){
  164.         if(document.getElementById("nextpage"))document.getElementById("nextpage").style.visibility="hidden";
  165.     } else{
  166.         if(document.getElementById("nextpage"))document.getElementById("nextpage").style.visibility="visible";
  167.     }
  168.     
  169.     document.getElementById("infobox2").innerHTML= (page+1) + "/" + (pages+1);
  170.  
  171.     if(pages == -1){
  172.         document.getElementById("navitable").style.display="none";
  173.     }else {
  174.         document.getElementById("navitable").style.display="";
  175.     }
  176. }
  177.  
  178. //-->
  179. ]]></xsl:text>
  180.  
  181. </script>
  182.  
  183.  
  184.  
  185.  
  186.  
  187. <!--
  188. <xsl:element name="SCRIPT">
  189.     <xsl:attribute name="language">JavaScript</xsl:attribute>
  190.     <xsl:attribute name="SRC"><xsl:copy-of select="$stylepathorig"/>\<xsl:copy-of select="$language"/>.js</xsl:attribute>
  191. </xsl:element>
  192.  
  193.  
  194. <xsl:element name="SCRIPT">
  195.     <xsl:attribute name="language">JavaScript</xsl:attribute>
  196.     <xsl:attribute name="SRC"><xsl:copy-of select="$stylepathorig"/>\slang.js</xsl:attribute>
  197. </xsl:element>
  198. -->
  199.  
  200.  
  201.  
  202. <xsl:element name="SCRIPT">
  203.     <xsl:attribute name="language">JavaScript</xsl:attribute>
  204. function translate(){
  205.     for (newalt in sfields) {
  206.     
  207.         sfields[newalt] = window.external.GetString(sfields[newalt]);
  208.     
  209.         if(document.getElementById(newalt) ){
  210.             if(document.getElementById(newalt).alt){//image
  211.                 document.getElementById(newalt).alt=sfields[newalt];
  212.             }else if(document.getElementById(newalt).value == ""){//input
  213.                 document.getElementById(newalt).value=sfields[newalt];
  214.             }else{
  215.                 document.getElementById(newalt).innerHTML=sfields[newalt];
  216.             }
  217.         }
  218.  
  219.             if(document.getElementById(newalt + "_" + 0)){
  220.                 document.getElementById(newalt + "_" + 0).innerHTML=sfields[newalt];
  221.             }
  222.             
  223.             if(document.getElementById(newalt + "_" + 1)){
  224.                 document.getElementById(newalt + "_" + 1).innerHTML=sfields[newalt];
  225.             }
  226.             
  227.             if(document.getElementById(newalt + "_" + 2)){
  228.                 document.getElementById(newalt + "_" + 2).innerHTML=sfields[newalt];
  229.             }
  230.             
  231.             if(document.getElementById(newalt + "_" + 3)){
  232.                 document.getElementById(newalt + "_" + 3).innerHTML=sfields[newalt];
  233.             }
  234.             
  235.             if(document.getElementById(newalt + "_" + 4)){
  236.                 document.getElementById(newalt + "_" + 4).innerHTML=sfields[newalt];
  237.             }
  238.             
  239.             if(document.getElementById(newalt + "_" + 5)){
  240.                 document.getElementById(newalt + "_" + 5).innerHTML=sfields[newalt];
  241.             }
  242.  
  243.         }
  244. }
  245.  
  246.  
  247. var sfields = new Array();
  248.  
  249. sfields["str_noupdate"]        = 600;
  250. sfields["str_yesupdate"]    = 601;
  251. sfields["str_lastscan"]        = 602;
  252. sfields["str_foundprogs"]    = 603;
  253. sfields["str_foundupdates"]    = 604;
  254. sfields["searchbutton"]        = 605;
  255. sfields["listbutton"]        = 606;
  256. sfields["str_availupdates"]    = 607;
  257. sfields["str_availvers"]    = 608;
  258. sfields["str_availnews"]    = 609;
  259. sfields["str_pname"]        = 610;
  260. sfields["str_publisher"]    = 611;
  261. sfields["str_category"]     = 612;
  262. sfields["str_license"]         = 613;
  263. sfields["str_irequirements"]= 614;
  264. sfields["str_iversion"]     = 615;
  265. sfields["str_uversion"]     = 616;
  266. sfields["str_management"]     = 617;
  267. sfields["str_info"]         = 618;
  268. sfields["str_sdesc"]         = 619;
  269. sfields["str_desc"]         = 620;
  270. sfields["str_download"]     = 621;
  271. sfields["str_buynow"]         = 622;
  272. sfields["str_getprice"]     = 623;
  273. sfields["str_buyfrom"]         = 624;
  274. sfields["str_errlink"]         = 625;
  275. sfields["str_sendupdate"]     = 626;
  276. sfields["sendupdate"]         = 626;
  277. sfields["alt_uninstall"]    = 627;
  278. sfields["alt_repair"]         = 629;
  279. sfields["alt_modify"]         = 628;
  280. sfields["str_ranking"]         = 630;
  281. sfields["str_allranking"]     = 631;
  282. sfields["str_newstitle"]    = 632;
  283. sfields["str_newsdata"]     = 633;
  284. sfields["str_comment"]         = 636;
  285. sfields["str_updatetop"]     = 634;
  286. sfields["str_changevalues"] = 635;
  287.  
  288. </xsl:element>
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304. </head>
  305.  
  306. <body onload="if(window.translate)translate();">
  307.  
  308.  
  309.  
  310.  
  311.  
  312. <form name="form1" method="post" action="" id="form1">
  313.     <div>
  314.         <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
  315.         <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
  316.     </div>
  317.     
  318.     <script type="text/javascript">
  319.     <!--
  320.         var theForm = document.forms['form1'];
  321.         if (!theForm) { 
  322.       theForm = document.form1; 
  323.     }
  324.         function __doPostBack(eventTarget, eventArgument) {
  325.             if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
  326.                 theForm.__EVENTTARGET.value = eventTarget;
  327.                 theForm.__EVENTARGUMENT.value = eventArgument;
  328.                 theForm.submit(); 
  329.             }
  330.         }
  331.     // -->
  332.  
  333.         function Close() { 
  334.             if (window.external && window.external.StartClose) { 
  335.                 window.external.StartClose(); 
  336.             } 
  337.             return false;
  338.         }
  339.         var closebt = document.getElementById("StartPage_CloseButton");
  340.         if (closebt != null) { 
  341.             closebt.onclick = Close; 
  342.         }
  343. </script>
  344.     
  345.     
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.     
  353. <!-- ERSTE TABELLE OBEN LINKS  -->    
  354. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
  355.     <tr>
  356.         <td style="padding-left: 10px; padding-right:10px">
  357.             <table border="0" cellpadding="0" cellspacing="0" width="100%" >
  358.                 <tr>
  359.                     <xsl:if test="$myupdatelist=''">
  360.                         <td class="status_greenl"><div id="str_noupdate">.</div></td>
  361.                         <td class="status_greenr">
  362.                             <xsl:element name="img">
  363.                                 <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/tbl/shim.gif</xsl:attribute>
  364.                                 <xsl:attribute name="width">19</xsl:attribute>
  365.                                 <xsl:attribute name="height">23</xsl:attribute>
  366.                             </xsl:element>
  367.                         </td>
  368.                     </xsl:if>
  369.                     <xsl:if test="not($myupdatelist='')">
  370.                         <td class="status_redl"><div id="str_yesupdate">.</div></td>
  371.                         <td class="status_redr">
  372.                             <xsl:element name="img">
  373.                                 <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/tbl/shim.gif</xsl:attribute>
  374.                                 <xsl:attribute name="width">19</xsl:attribute>
  375.                                 <xsl:attribute name="height">23</xsl:attribute>
  376.                             </xsl:element>
  377.                         </td>
  378.                 </xsl:if>
  379.                 
  380.                 </tr>
  381.             </table>
  382.         </td>
  383.     </tr>
  384.     <tr>
  385.         <td valign="top" class="bgpic_unused">
  386.             <table border="0" cellpadding="10" cellspacing="0" width="100%" >
  387.             <tr>
  388.                 <td width="50%" valign="top" colspan="2">
  389.                     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  390.                         <tr>
  391.                             <td class="tl">
  392.                                 <xsl:element name="img">
  393.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/tbl/shim.gif</xsl:attribute>
  394.                                     <xsl:attribute name="width">2</xsl:attribute>
  395.                                     <xsl:attribute name="height">2</xsl:attribute>
  396.                                 </xsl:element>
  397.                             </td><td class="tm" width="100%"></td>
  398.                             <td class="tr">
  399.                                 <xsl:element name="img">
  400.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/tbl/shim.gif</xsl:attribute>
  401.                                     <xsl:attribute name="width">2</xsl:attribute>
  402.                                     <xsl:attribute name="height">2</xsl:attribute>
  403.                                 </xsl:element>
  404.                             </td>
  405.                         </tr>
  406.                         <tr>
  407.                             <td class="ml"></td>
  408.                             <td width="100%" class="wbox">
  409.  
  410. <table border="0" cellpadding="0" cellspacing="0"  width="100%">
  411.     <tr>
  412.         <td valign="top" style="padding-right:15px" width="20">
  413.             <xsl:element name="img"><xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/xml_scan.gif</xsl:attribute></xsl:element>
  414.         </td>
  415.         <td valign="top" width="250">
  416.             <table border="0" cellpadding="0" cellspacing="0" width="100%">
  417.                 <tr>
  418.                   <td colspan="2" valign="top" style="padding-bottom:20px">
  419.                         <table border="0" width="100%" cellpadding="0" cellspacing="0" >
  420.                             <tr>
  421.                                 <td class="normalbig"><div id="str_lastscan">.</div></td>
  422.                             </tr>
  423.                             <tr>
  424.                                 <td class="blue" valign="top"><b><xsl:copy-of select="$lastupdate"/></b></td>
  425.                             </tr>
  426.                         </table>
  427.                     </td>
  428.                 </tr>
  429.                 <tr>
  430.                     <td colspan="2" valign="top">
  431.                         <table border="0" width="100%" cellpadding="0" cellspacing="0">
  432.                             <tr>
  433.                                 <td class="normalbig"><div id="str_foundprogs">.</div></td>
  434.                                 <td class="green"><b><xsl:copy-of select="$apps"/></b></td>
  435.                                 <td rowspan="2">
  436.                                     <!--chart-->
  437.                                 </td>
  438.                             </tr>
  439.                             <tr>
  440.                                 <td class="normalbig"><div id="str_foundupdates">.</div></td>
  441.                                 <td class="red"><b><xsl:copy-of select="$updates"/></b></td>
  442.                             </tr>
  443.                         </table>
  444.                     </td>
  445.                 </tr>
  446.                 <tr>
  447.                     <td colspan="2">
  448.                         <br/>
  449.                         <xsl:element name="img">
  450.                             <xsl:attribute name="width">250</xsl:attribute>
  451.                             <xsl:attribute name="height">1</xsl:attribute>
  452.                             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/shim.gif</xsl:attribute>
  453.                         </xsl:element>
  454.                     </td>
  455.                 </tr>
  456.             </table>
  457.         </td>
  458.         
  459.         <td valign="top">
  460.             <xsl:element name="img">
  461.                 <xsl:attribute name="src">
  462.                 <xsl:copy-of select="$stylepath"/>/chart/<xsl:copy-of select="$ratio"/>.png
  463.                 </xsl:attribute>
  464.                 <xsl:attribute name="style">margin-left:15px; margin-right:15px; margin-top:15px;</xsl:attribute>
  465.             </xsl:element>
  466.         </td>
  467.         
  468.         
  469.         <td>
  470.             <table border="0" cellpadding="5" cellspacing="0" >
  471.                 <tr>
  472.                     <td>
  473.                         
  474.                         <table border="0" cellpadding="0" cellspacing="0">
  475.                             <tr>
  476.                                 <td>
  477.                                     <xsl:element name="img">
  478.                                         <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>buttons/start_left.gif</xsl:attribute>
  479.                                     </xsl:element>
  480.                                 </td>
  481.                                 <td class="startm">
  482.                                 <a href="#" class="buttonstart" onclick="window.external.StartScan();" id="searchbutton">.</a></td>
  483.                                 <td>
  484.                                     <xsl:element name="img">
  485.                                         <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>buttons/start_right.gif</xsl:attribute>
  486.                                     </xsl:element>
  487.                                 </td>
  488.                             </tr>
  489.                         </table>
  490.                 
  491.                     </td>
  492.                 </tr>
  493.                 <tr>
  494.                     <td>
  495.                         <table border="0" cellpadding="0" cellspacing="0">
  496.                             <tr>
  497.                                 <td>
  498.                                     <xsl:element name="img">
  499.                                         <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>buttons/start_left.gif</xsl:attribute>
  500.                                     </xsl:element>
  501.                                 </td>
  502.                                 <td class="startm">
  503.                                 <a href="#" class="buttonstart" onclick="window.external.StartClose();" id="listbutton">.</a></td>
  504.                                 <td>
  505.                                     <xsl:element name="img">
  506.                                         <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>buttons/start_right.gif</xsl:attribute>
  507.                                     </xsl:element>
  508.                                 </td>
  509.                             </tr>
  510.                         </table>
  511.                         
  512.                         
  513.                     </td>
  514.  
  515.                 </tr>
  516.             </table>
  517.         </td>
  518.         
  519.         
  520.  
  521.         
  522.         
  523.         
  524.         
  525.         <td valign="top">
  526.             <xsl:element name="img">
  527.             <xsl:attribute name="border">0</xsl:attribute>
  528.             <xsl:attribute name="align">right</xsl:attribute>
  529.             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>startstar.png</xsl:attribute></xsl:element>
  530.         </td>
  531.     </tr>
  532. </table>
  533.  
  534.                             </td>
  535.                             <td class="mr"></td>
  536.                         </tr>
  537.                         <tr>
  538.                             <td class="bl">
  539.                                 <xsl:element name="img">
  540.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  541.                                     <xsl:attribute name="width">2</xsl:attribute>
  542.                                     <xsl:attribute name="height">2</xsl:attribute>
  543.                                 </xsl:element>
  544.                             </td>
  545.                             <td class="bm"></td>
  546.                             <td class="br">
  547.                                 <xsl:element name="img">
  548.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  549.                                     <xsl:attribute name="width">2</xsl:attribute>
  550.                                     <xsl:attribute name="height">2</xsl:attribute>
  551.                                 </xsl:element>
  552.                             </td>
  553.                         </tr>                    
  554.                     </table>
  555.                 </td>
  556.  
  557.             </tr>
  558.             <tr>
  559.                 <td width="50%" valign="top">
  560.                 
  561. <!-- Dritte TABELLE UNTEN LINKS-->    
  562. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="200">
  563.                         <tr>
  564.                             <td class="tl">
  565.                                 <xsl:element name="img">
  566.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  567.                                     <xsl:attribute name="width">2</xsl:attribute>
  568.                                     <xsl:attribute name="height">2</xsl:attribute>
  569.                                 </xsl:element>
  570.                             </td><td class="tm" width="100%"></td>
  571.                             <td class="tr">
  572.                                 <xsl:element name="img">
  573.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  574.                                     <xsl:attribute name="width">2</xsl:attribute>
  575.                                     <xsl:attribute name="height">2</xsl:attribute>
  576.                                 </xsl:element>
  577.                             </td>
  578.                         </tr>
  579.                         <tr>
  580.                             <td class="ml"></td>
  581.                             <td width="100%" height="100%" class="wbox">
  582.  
  583. <table border="0" cellpadding="0" cellspacing="0" height="200" width="100%">
  584.     <tr>
  585.         <td valign="top" style="padding-right:15px">
  586.             <xsl:element name="img"><xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/xml_ok.gif</xsl:attribute></xsl:element>
  587.         </td>
  588.         <td valign="top" width="100%">
  589.             <table border="0" cellpadding="2" cellspacing="0" width="100%">
  590.                 <tr>
  591.                     <td width="80%" class="normalbig" style="white-space: nowrap;"><div id="str_availupdates">.</div></td>
  592.                     <td class="normalbig" style="white-space: nowrap;padding-right:10px;"><div id="str_availvers">.</div></td>
  593.                 </tr>
  594.                 
  595.                 <xsl:for-each select="updatelist">
  596.                     <xsl:apply-templates/>
  597.                 </xsl:for-each>
  598.                 
  599.                 <tr>
  600.                     <td colspan="2" style="text-align:center; padding-top:10px;">
  601.                     
  602.                     
  603.                     
  604.                 <table border="0" cellpadding="0" cellspacing="0" id="navitable">
  605.                     <tr>
  606.                         <td>
  607.                     <div id="prevpage" style="display:inline;"><a href="javascript: prevPage();" >
  608.                         <xsl:element name="img">
  609.                             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/buttons/us_snav_backward.gif</xsl:attribute>
  610.                             <xsl:attribute name="border">0</xsl:attribute>
  611.                         </xsl:element>
  612.                     </a>
  613.                     </div>
  614.                         </td>
  615.                         <td width="50" align="center"><div id="infobox2" style="text-align:center;">.</div></td>
  616.                         <td>
  617.                     <div id="nextpage" style="display:inline;"><a href="javascript: nextPage();">
  618.                         <xsl:element name="img">
  619.                             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/buttons/us_snav_forward.gif</xsl:attribute>
  620.                             <xsl:attribute name="border">0</xsl:attribute>
  621.                         </xsl:element>
  622.                     </a>
  623.                     </div>
  624.                         </td>
  625.                     </tr>
  626.                 </table>
  627.                 
  628.                 
  629.                 
  630.                 
  631.                 
  632.  
  633.                     </td>
  634.                 </tr>
  635.                 
  636.  
  637.                 
  638.             </table>
  639.         </td>
  640.         <td valign="top"></td>
  641.     </tr>
  642. </table>
  643.  
  644.                             </td>
  645.                             <td class="mr"></td>
  646.                         </tr>
  647.                         <tr>
  648.                             <td class="bl">
  649.                                 <xsl:element name="img">
  650.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  651.                                     <xsl:attribute name="width">2</xsl:attribute>
  652.                                     <xsl:attribute name="height">2</xsl:attribute>
  653.                                 </xsl:element>
  654.                             </td>
  655.                             <td class="bm"></td>
  656.                             <td class="br">
  657.                                 <xsl:element name="img">
  658.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  659.                                     <xsl:attribute name="width">2</xsl:attribute>
  660.                                     <xsl:attribute name="height">2</xsl:attribute>
  661.                                 </xsl:element>
  662.                             </td>
  663.                         </tr>                    
  664.                     </table>
  665.                 
  666.                 </td>
  667.                 <td width="50%" valign="top">
  668.                 
  669. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  670.                         <tr>
  671.                             <td class="tl">
  672.                                 <xsl:element name="img">
  673.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  674.                                     <xsl:attribute name="width">2</xsl:attribute>
  675.                                     <xsl:attribute name="height">2</xsl:attribute>
  676.                                 </xsl:element>
  677.                             </td><td class="tm" width="100%"></td>
  678.                             <td class="tr">
  679.                                 <xsl:element name="img">
  680.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  681.                                     <xsl:attribute name="width">2</xsl:attribute>
  682.                                     <xsl:attribute name="height">2</xsl:attribute>
  683.                                 </xsl:element>
  684.                             </td>
  685.                         </tr>
  686.                         <tr>
  687.                             <td class="ml"></td>
  688.                             <td width="100%" class="wbox">
  689.  
  690. <table border="0" cellpadding="0" cellspacing="0" height="200" width="100%">
  691.     <tr>
  692.         <td valign="top" style="padding-right:15px">
  693.             <xsl:element name="img"><xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/xml_news.gif</xsl:attribute></xsl:element>
  694.         </td>
  695.         <td valign="top" width="100%">
  696.             <table border="0" cellpadding="0" cellspacing="0" width="100%">
  697.                 <tr>
  698.                     <td width="100%" class="normalbig"><nobr><div id="str_availnews">.</div></nobr></td>
  699.                 </tr>
  700.                 <tr>
  701.                     <td>
  702.                         <xsl:for-each select="newslist">
  703.                             <xsl:apply-templates/>
  704.                         </xsl:for-each>
  705.                     </td>
  706.                 </tr>
  707.             </table>
  708.         </td>
  709.         <td valign="top"></td>
  710.     </tr>
  711. </table>
  712.                             
  713.                             </td>
  714.                             <td class="mr"></td>
  715.                         </tr>
  716.                         <tr>
  717.                             <td class="bl">
  718.                                 <xsl:element name="img">
  719.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  720.                                     <xsl:attribute name="width">2</xsl:attribute>
  721.                                     <xsl:attribute name="height">2</xsl:attribute>
  722.                                 </xsl:element>
  723.                             </td>
  724.                             <td class="bm"></td>
  725.                             <td class="br">
  726.                                 <xsl:element name="img">
  727.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  728.                                     <xsl:attribute name="width">2</xsl:attribute>
  729.                                     <xsl:attribute name="height">2</xsl:attribute>
  730.                                 </xsl:element>
  731.                             </td>
  732.                         </tr>                    
  733.                     </table>
  734.                 
  735.                 </td>
  736.             </tr>
  737.         </table>
  738.         <xsl:element name="img">
  739.             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  740.             <xsl:attribute name="width">1</xsl:attribute>
  741.             <xsl:attribute name="height">1</xsl:attribute>
  742.         </xsl:element>
  743.     </td></tr>
  744. </table>
  745.  
  746.  
  747.  
  748.  
  749.  
  750.  
  751.  
  752.  
  753.  
  754.  
  755.  
  756.  
  757. </form>
  758.  
  759.  
  760.  
  761.  
  762. <script type="text/javascript">
  763.  
  764. <xsl:text disable-output-escaping="yes"><![CDATA[
  765. <!--
  766.  
  767. var minimalshow = 5;
  768. var page = 0;
  769. var updatescount = 0;
  770.  
  771.  
  772. //check how much updates available
  773. for (var i = 0; i <= 1000; i++){
  774.     if(document.getElementById("update_" + i)){
  775.         updatescount++;
  776.     }
  777. }
  778.  
  779.  
  780. if (!window.WinWeight && document.body && document.body.offsetWidth) {
  781.   window.onresize = neuAufbau;
  782.   WinWeight = UpdatestarWindowWinWeight();
  783.   WinHeight = UpdatestarWindowWinHeight();
  784. }
  785.  
  786. neuAufbau();
  787.  
  788. //-->
  789. ]]></xsl:text>
  790.  
  791. </script>
  792.  
  793.  
  794. </body></html>
  795. </xsl:template>
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804. <xsl:template match="news">
  805.     <table border="0" width="100%">
  806.         <tr>
  807.             <td width="100%" class="normalbig" valign="top">
  808.                 <xsl:element name="div">
  809.                     <xsl:attribute name="class"><xsl:value-of select="type" /></xsl:attribute>
  810.                     <xsl:attribute name="style">margin-left:-1px</xsl:attribute>
  811.                     
  812.                     <xsl:element name="a">
  813.                         <xsl:attribute name="href">javascript:window.external.OpenNews(<xsl:value-of select="id" />);</xsl:attribute>
  814.                         <xsl:attribute name="alt"><xsl:value-of select="url" /></xsl:attribute>
  815.                         <xsl:value-of select="date" /> - <xsl:value-of select="title" />
  816.                     </xsl:element>
  817.                 </xsl:element>
  818.                 
  819.             </td>
  820.         </tr>
  821.     </table>
  822. </xsl:template>
  823.  
  824.  
  825.  
  826.  
  827.  
  828. <xsl:template match="update">
  829.     <xsl:element name="tr">
  830.         <xsl:attribute name="style">display:block;</xsl:attribute>
  831.         <xsl:attribute name="id">update_<xsl:number level="single" count="update" format="1" /></xsl:attribute>
  832.         
  833.         <xsl:element name="td">
  834.             <xsl:attribute name="valign">top</xsl:attribute>
  835.             <xsl:attribute name="style">padding-right:10px;</xsl:attribute>
  836.             <xsl:attribute name="class">normalbig</xsl:attribute>
  837.             
  838.             
  839.             <xsl:if test="@new">
  840.                 <xsl:element name="div">
  841.                     <xsl:attribute name="class">newupdate</xsl:attribute>
  842.                     <xsl:element name="a">
  843.                         <xsl:attribute name="href">javascript:window.external.GotoUpdate(<xsl:value-of select="update_id" />);</xsl:attribute>
  844.                             <b><xsl:value-of select="name"/></b>
  845.                     </xsl:element>    
  846.                 </xsl:element>
  847.             </xsl:if>
  848.             
  849.             
  850.             <xsl:if test="not(@new)">
  851.                 <xsl:element name="div">
  852.                     <xsl:attribute name="class">update</xsl:attribute>
  853.                     <xsl:element name="a">
  854.                         <xsl:attribute name="href">javascript:window.external.GotoUpdate(<xsl:value-of select="update_id" />);</xsl:attribute>
  855.                             <xsl:value-of select="name"/>
  856.                     </xsl:element>    
  857.                 </xsl:element>
  858.             </xsl:if>
  859.             
  860.             
  861.             
  862.  
  863.         </xsl:element>
  864.         
  865.         <xsl:element name="td">
  866.             <xsl:attribute name="valign">top</xsl:attribute>
  867.             <xsl:attribute name="class">normalbig</xsl:attribute>
  868.             <xsl:element name="a">
  869.                 <xsl:attribute name="href">javascript:window.external.GotoUpdate(<xsl:value-of select="update_id" />);</xsl:attribute>
  870.                 
  871.                     <xsl:if test="@new">
  872.                         <b><xsl:value-of select="version"/></b>
  873.                     </xsl:if>
  874.                     <xsl:if test="not(@new)">
  875.                         <xsl:value-of select="version"/>
  876.                     </xsl:if>
  877.                 
  878.                 
  879.             </xsl:element>    
  880.         </xsl:element>
  881.     
  882.  
  883.             
  884.     </xsl:element>
  885.     
  886.     
  887. </xsl:template>
  888.  
  889.  
  890.  
  891. </xsl:stylesheet>
  892.